package chapter11

/**
  * @Copyright: Shanghai Definesys Company.All rights reserved.
  * @Description:
  * @author: chuhaitao
  * @since: 2019/1/13 18:18
  * @history:
  *          1.2019/1/13 created by chuhaitao
  */
object TupeDemo {

  def main(args: Array[String]): Unit = {
    //编译器会根据元素数据的个数不同，编译成不同的类型
    //tuple1。。。。tuple22
    var tuple01 = (2, "3", 0.12, '1')

    for (item <- tuple01.productIterator) {
      println(item)
    }
  }
}
